package com.ktjiaoyu.crm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ktjiaoyu.crm.pojo.Right;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface RightService extends IService<Right> {

    /**
     * 根据角色ID查询该角色所拥有的权限
     * @param roleId
     * @return
     */
    Set<String> findRightsByRoleName(@Param("roleId") Long roleId);

    List<Right> getRightsByRoleId(Long roleId);


}
